<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>测试导入</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <meta name="renderer" content="webkit">
    <link href="${pageContext.request.contextPath}/static/css/common.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/plugins/layer/skin/layer.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/plugins/bootstrap-3.3.5/css/bootstrap.min.css"
          rel="stylesheet">
          <link href="${pageContext.request.contextPath}/static/plugins/select2-4.0.0/dist/css/select2.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/plugins/font-awesome-4.3.0/css/font-awesome.min.css"
          rel="stylesheet">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/plugins/jquery.time/jquery.timepicker.min.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/plugins/multiselect/jquery.multiselect.css" />
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/plugins/multiselect/jquery.multiselect.filter.css" />
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/plugins/multiselect/assets/style.css" />
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/plugins/multiselect/assets/prettify.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/js/jquery-ui.css" />
   
    	<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/jquery.js"></script>
    <script src="${pageContext.request.contextPath}/static/js/jquery-1.11.3.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/jquery-ui.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/plugins/bootstrap-3.3.5/js/bootstrap.min.js"></script>
    <script src="/static/plugins/bootstrap-3.3.5/js/bootstrap.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/plugins/layer/layer.js" type="text/javascript"></script>
	<script src="${pageContext.request.contextPath}/static/plugins/select2-4.0.0/dist/js/select2.min.js"></script>
	<script src="${pageContext.request.contextPath}/static/plugins/My97DatePicker/WdatePicker.js"
        type="text/javascript"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/global.js"></script>
	<script src="${pageContext.request.contextPath}/static/js/jquery.form.js" type="text/javascript"></script>
	<script src="${pageContext.request.contextPath}/static/js/common.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/static/plugins/multiselect/jquery.multiselect.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/static/plugins/multiselect/jquery.multiselect.filter.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/static/plugins/multiselect/assets/prettify.js"></script>
<style type="text/css">
        .divDistribute{
        	height:300px;
    		overflow-y: auto;
        }
        .border{
               border: 1px solid #eeeeee;
        }
        .tdborder{
               border: 1px solid #eeeeee;
               height: 32px;
               padding: 5px 8px 0px 8px !important;
               width: 35%;
               text-align: left;
               color: #666;
    		   font-size: 14px;
        }
        .tdborder2{
               border: 1px solid #eeeeee;
               padding:0px !important;
        }
        .tdborder3{
               border: 1px solid #eeeeee;
               height: 32px;
               padding: 5px 8px 0px 8px !important;
               width: 20%;
               text-align: left;
               color: #666;
    		   font-size: 14px;
        }
    </style>
</head>
<body view="menu-item-4142">
<jsp:include page="top.jsp"></jsp:include>
<div class="right">
    <div class="jqGrid_wrapper">
       
		<div style="text-align: center;">
         <button class="btn btn-success form-control" id="sub" onclick="input1()" style="width: 150px;">导入社区</button>
         <button class="btn btn-success form-control" id="cancel" onclick="input2()" style="width: 150px;">导入app用户</button>
         <button class="btn btn-success form-control"  onclick="input3()" style="width: 150px;">导入用户与社区关联</button>
         <button class="btn btn-success form-control"  onclick="input4()" style="width: 150px;">导入lock</button>
         <button class="btn btn-success form-control"  onclick="input5()" style="width: 150px;">导入key</button>
     	</div>
    </div>
</div>

<script>

    function input1(){
   		 var table=$("#agtTable");
		  table.empty();
		  $.post("${pageContext.request.contextPath}/admin/inputComu_inputTest.action", function (data) {
	            
	        }, "json");
   }
    
    function input2(){
   		 var table=$("#agtTable");
		  table.empty();
		  $.post("${pageContext.request.contextPath}/admin/inputComu_inputUser.action", function (data) {
	            
	        }, "json");
   }
    
    function input3(){
   		 var table=$("#agtTable");
		  table.empty();
		  $.post("${pageContext.request.contextPath}/admin/inputComu_inputUserComu.action", function (data) {
	            
	        }, "json");
   }
    
    function input4(){
  		 var table=$("#agtTable");
		  table.empty();
		  $.post("${pageContext.request.contextPath}/admin/inputComu_inputLock.action", function (data) {
	            
	        }, "json");
  }
    
    function input5(){
  		 var table=$("#agtTable");
		  table.empty();
		  $.post("${pageContext.request.contextPath}/admin/inputComu_inputKey.action", function (data) {
	            
	        }, "json");
  }
 	
    	
</script>
</body>
</html>
